Skip to main content

clickStack

Type

function

Summary

Returns the name of the stack in which the user most recently clicked the mouse.

Syntax

the clickStack
clickStack()

Description

Use the clickStack function to determine which window the user clicked, or, in conjunction with the clickField, clickLine, or clickChunk, to determine which field was clicked.

If the user clicks a stack's title bar or border to bring it to the front, the value returned by the clickStack does not change. Only clicking in the stack window's content area changes the clickStack value.

If the user clicks the backdrop, the clickStack returns empty.

Examples

the clickStack
repeat until (the short name of the clickStack is "Icon Palette")
if the name of the clickStack is not the defaultStack then beep

control structure: function

function: mouseStack, value, clickField, clickLoc, clickCharChunk, clickLine, clickChunk

glossary: property, return, stack window

keyword: field

object: stack

property: backdrop, name, defaultStack

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?